import QtQuick 2.0
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.0
import '../../widget'

BaseStackPage{
    id:stackPage
    z:100
    property int tabIndex:0
    property bool tabsVisible:true
    BottomTabs{
        id:bottomTabs
        visible:stackPage.tabsVisible
        width:parent.width
        height: 50
        anchors.bottom: parent.bottom
        anchors.bottomMargin: 0
        currentIndex:stackPage.tabIndex
        onChangeTab: {
            var url;
            if(index == 0){
                url = "qrc:/work/clock/Clock.qml";
            }else{
                url = "qrc:/work/clock/Stat.qml";
            }
            stackPage.toTop(url);
        }
    }
}
